/**
 * @param id - 班级 id
 */
interface RegisterAPIData {
  id: string
}

interface RegisterAPIResData {
  code: number
  msg: string
  time: string
  data: null
}

/**
 * @description 为自己报名
 */
export function registerAPI(data: RegisterAPIData, token: string) {
  return httpInstance.post<RegisterAPIResData, RegisterAPIData>(
    '/api/classes/classreport',
    data,
    { headers: { token } },
  )
}
